// main.ts
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import axios from "axios";
import local from 'element-plus/lib/locale/lang/zh-cn'

// 引入路由拦截
import './util/request'




const app = createApp(App)
// vue3.0取消了Vue.prototype，官方文档推荐使用globalProperties
app.config.globalProperties.$http = axios
app.use(ElementPlus,{local})
app.use(router)
app.mount('#app')


